package com.chinasofti1.info_manager.factory;

import com.chinasofti1.info_manager.dao.BaseStudentDao;
import com.chinasofti1.info_manager.dao.OtherStudentDao;
import com.chinasofti1.info_manager.domain.Student;

public class StudentDaoFactory {
    public static BaseStudentDao getStudentDao(){
        return new BaseStudentDao() {
            @Override
            public int getIndex(String id) {
                return 0;
            }

            @Override
            public boolean addStudent(Student stu) {
                return false;
            }

            @Override
            public Student[] findAllStudent() {
                return new Student[0];
            }

            @Override
            public void deleteStudentById(String id) {

            }

            @Override
            public void updateStudent(String updateId, Student newStu) {

            }
        };
    }
}
